import {
  Request
} from '../index.js'

export function getopenid(code, phone, qrcodeText) { //登录
  return Request({
    url: '/wxapplet/register',
    method: 'post',
    data: {
      code: code, // 将获取到的 code 发送到服务器
      phone: phone,
      qrcodeText: qrcodeText,

    }
  })
}
export function getPhoneNumber(code) { //登录
  return Request({
    url: '/wxapplet/getPhoneNumber',
    method: 'post',
    data: {
      access_token: "",
      code: code, // 将获取到的 code 发送到服务器
    }
  })
}